package com.ojoin.trade.supplyloan_core.utils.catchdata.httpclient;

import org.apache.commons.httpclient.HttpClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ojoin.trade.supplyloan_core.web.domain.TbSlPlatformUser;

public class MyHttpClient {
	
	private Logger log = LoggerFactory
			.getLogger(MyHttpClient.class);

	private TbSlPlatformUser platformUser;
	private HttpClient httpClient ; 
	private boolean islogin = false ;
	private boolean isCache = false ;
	
	
    public TbSlPlatformUser getPlatformUser() {
		return platformUser;
	}


	public void setPlatformUser(TbSlPlatformUser platformUser) {
		this.platformUser = platformUser;
	}


	public boolean isIslogin() {
		return islogin;
	}


	public void setIslogin(boolean islogin) {
		this.islogin = islogin;
	}

 
	/*private MyWebDriver(){
    }*/
	
	public boolean isCache() {
		return isCache;
	}


	public void setCache(boolean isCache) {
		this.isCache = isCache;
	}


	

	public HttpClient getHttpClient() {
		return httpClient;
	}


	public void setHttpClient(HttpClient httpClient) {
		this.httpClient = httpClient;
	}


	// 初始化状态
	public void init(){
		this.setIslogin(false);
		this.setPlatformUser(null);
	}
	
	//synchronized  
	
	public  HttpClient creatte() throws Exception{
		 HttpClient client = new HttpClient();
		return client;
		
	}
	
	
	
	
	
	
	public int getDefaultDriverTimeOut() {
		return 30;
	}
	
}
